﻿using WholesaleOnline.Controller.Request;

namespace WholesaleOnline.Controller.Routing
{
    public class Route
    {
        private string m_Route = null;

        public string URL { get { return m_Route; } }

        public Route(string route)
        {
            m_Route = route;
        }

        public bool Matches(WebRequest webRequest)
        {
            return webRequest.RequestedURL.ToLower().Contains(m_Route.ToLower());
        }
    }
}
